/*
 * @Author: your name
 * @Date: 2020-03-13 16:02:28
 * @LastEditTime: 2020-03-29 14:13:33
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-imooc-ebook\src\store\index.js
 */
import Vue from 'vue'
import Vuex from 'vuex'
import book from './modules/book'
import store from './modules/store'
// 不是node-modules当中的我们需要加上./不然会有报错
import getters from './getters'
// 通过vue.use()静态方法将vuex引用进来，然后他会做一个vuex的实例化
import actions from './actions'
Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    book,
    store
  },
  getters,
  actions
})
